﻿@model BenzInfo.Hockey.LHRAF.Models.Post

@{
    ViewBag.Title = BenzInfo.Hockey.LHRAF.Resources.Dictionary.Edit;
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Statistics", FormMethod.Post, new { @encType = "multipart/form-data" })) 
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@BenzInfo.Hockey.LHRAF.Resources.Dictionary.Statistics</legend>

        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Key)
        @Html.HiddenFor(model => model.Picture)

        <div class="editor-label">
            @Html.LabelFor(model => model.TitleEN)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TitleEN)
            @Html.ValidationMessageFor(model => model.TitleEN)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TitleFR)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TitleFR)
            @Html.ValidationMessageFor(model => model.TitleFR)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContentEN)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContentEN)
            @Html.ValidationMessageFor(model => model.ContentEN)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContentFR)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContentFR)
            @Html.ValidationMessageFor(model => model.ContentFR)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Picture)
        </div>
        <div class="editor-field">
            <input class="upload" type="file" name="inputFile" id="Picture" />
            <input type="checkbox" name="nopicture" id="nopicture" />
            <label for="nopicture">@BenzInfo.Hockey.LHRAF.Resources.Dictionary.NoPicture</label>
            @Html.ValidationMessageFor(model => model.Picture)
        </div>
    </fieldset>
}
